package com.itrip.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.itrip.entity.ItripUserLinkUser;
import com.itrip.dao.ItripUserLinkUserMapper;
import com.itrip.service.ItripUserLinkUserService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

@Service
public class ItripUserLinkUserServiceImpl extends ServiceImpl<ItripUserLinkUserMapper, ItripUserLinkUser> implements ItripUserLinkUserService{

 private static final Logger LOGGER = LoggerFactory.getLogger(ItripUserLinkUserServiceImpl.class);

 @Resource
 private ItripUserLinkUserMapper itripUserLinkUserMapper;

 @Override
 public Integer modifyItripUserLinkUser(ItripUserLinkUser itripUserLinkUser) throws Exception {
  Map map = new HashMap();
  map.put("id",itripUserLinkUser.getId());
  map.put("linkUserName",itripUserLinkUser.getLinkUserName());
  map.put("linkIdCardType",itripUserLinkUser.getLinkIdCardType());
  map.put("linkIdCard",itripUserLinkUser.getLinkIdCard());
  map.put("linkPhone",itripUserLinkUser.getLinkPhone());
  map.put("userId",itripUserLinkUser.getUserId());
  map.put("creationDate",itripUserLinkUser.getCreationDate());
  map.put("createdBy",itripUserLinkUser.getCreatedBy());
  map.put("modifyDate",itripUserLinkUser.getModifyDate());
  map.put("modifiedBy",itripUserLinkUser.getModifiedBy());

    return itripUserLinkUserMapper.updateItripUserLinkUser(map);
 }

 @Override
 public Integer deleteItripUserLinkUserByIds(Long[] ids) {
  return itripUserLinkUserMapper.deleteItripUserLinkUserByIds(ids);
 }
}
